<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateChatRobotsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('chat_robots', function (Blueprint $table) {
            $table->increments('id');
            $table->tinyInteger('server_id',false,true)->comment('服务器id');
            $table->bigInteger('player_id')->comment('玩家id');
            $table->string('name',50)->comment('玩家名字');
            $table->tinyInteger('number',false,true)->comment('重复次数');
            $table->string('content',150)->comment('聊天内容');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('chat_robots');
    }
}
